package com.wr.record.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wr.common.annotation.Excel;
import com.wr.common.core.domain.BaseEntity;

/**
 * 通行记录对象 tb_record
 *
 * @author art8173
 * @date 2024-12-10
 */
public class Record extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    private Long recordId;

    /**
     * 用户名称
     */
    @Excel(name = "用户名称")
    private String nickName;

    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String deptName;

    /**
     * 车牌号
     */
    @Excel(name = "车牌号")
    private String licensePlate;

    /**
     * 用户账号
     */
    @Excel(name = "用户账号")
    private String userName;

    /**
     * 通行地点
     */
    @Excel(name = "通行地点")
    private String passPlace;

    /**
     * 通行类型
     */
    @Excel(name = "通行类型")
    private String passType;

    /**
     * 通行快照
     */
    private String imageUrl;

    /**
     * 通行时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "通行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date passTime;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setLicensePlate(String licensePlate) {
        this.licensePlate = licensePlate;
    }

    public String getLicensePlate() {
        return licensePlate;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setPassPlace(String passPlace) {
        this.passPlace = passPlace;
    }

    public String getPassPlace() {
        return passPlace;
    }

    public void setPassType(String passType) {
        this.passType = passType;
    }

    public String getPassType() {
        return passType;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setPassTime(Date passTime) {
        this.passTime = passTime;
    }

    public Date getPassTime() {
        return passTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("recordId", getRecordId())
                .append("licensePlate", getLicensePlate())
                .append("userName", getUserName())
                .append("passPlace", getPassPlace())
                .append("passType", getPassType())
                .append("imageUrl", getImageUrl())
                .append("passTime", getPassTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .append("nickName", getNickName())
                .append("deptName", getDeptName())
                .toString();
    }
}
